package com.dao;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.po.RecruitCountVO;
import com.po.RecruitInfoPO;

@Repository
public class RecruitDao {
	@Autowired
	private SqlSessionTemplate sqlTemplate;
	
	/**
	 *  查询招聘部分分页信息  	
	 */
	public List<RecruitInfoPO> findRecruitInfo(Map<String,Object> map) {
		return  sqlTemplate.selectList("recruit.findRecruitInfo",map);
	}
	
	/**
	 * 查询招聘的全部信息
	 * @return
	 */
	public RecruitCountVO findRecruitCount() {
		return sqlTemplate.selectOne("recruit.findRecruitCount");
	}
}
